package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;

public class CallLogData implements Parcelable {

	private static final String TAG = "CallLogData";

	private String phoneNumber;
	private String date;

	public CallLogData() {
	}

	private CallLogData(Parcel in) {
		this.phoneNumber = in.readString();
		this.date = in.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.phoneNumber);
		dest.writeString(this.date);
	}

	public static final Parcelable.Creator<CallLogData> CREATOR = new Parcelable.Creator<CallLogData>() {

		@Override
		public CallLogData createFromParcel(Parcel source) {
			return new CallLogData(source);
		}

		@Override
		public CallLogData[] newArray(int size) {
			return new CallLogData[size];
		}
	};

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
}
